package com.zhuhuix.startup.security.rest;

/**
 * @program: opensource_startup
 * @description:
 * @author: lee
 * @create: 2021-01-02 23:52
 **/
public class Singleton {
    private volatile static Singleton uniqueSingleton;

    private Singleton() {
    }

    public static Singleton getInstance() {
        if (null == uniqueSingleton) {
            synchronized (Singleton.class) {
                if (null == uniqueSingleton) {
                    uniqueSingleton = new Singleton();
                }
            }
        }
        return uniqueSingleton;
    }
}
